stylecontext: Make first property name explicit
authorBenjamin Otte <otte@redhat.com>
Fri, 10 Nov 2017 13:53:36 +0000 (14:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 10 Nov 2017 13:56:42 +0000 (14:56 +0100)
commit5b94fe6342605bc9606b1938ac13a56573a2d33a
treeebed2ebc9be73f55dcd021712c42a1be2476c0af
parent51c5ccf412ceed008a9220f6ab859839352de31a
stylecontext: Make first property name explicit

Insist that a first non-NULL property is passed to
gtk_style_context_get().

This is in particular relevant because of dropping the state argument
since GTK3, and code like
  gtk_style_context_get (context, state, "font", &font);
would keep compiling without warnings without this change.
gtk/gtkstylecontext.c
gtk/gtkstylecontext.h